<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="Generator" content="ECSHOP v2.7.3">
    <meta charset="utf-8">
    <title>美尚良品</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link href="http://www.ecmoban.com/mobile/themes/default/images/touch-icon.png" rel="apple-touch-icon-precomposed">
    <link href="http://www.ecmoban.com/mobile/themes/default/images/favicon.ico" rel="shortcut icon"
          type="image/x-icon">
    <link href="css/ectouch.css" rel="stylesheet" type="text/css">


    <script type="text/javascript" src="js/shopping_flow.js"></script>
    <script type="text/javascript" src="js/transport.js"></script>
    <script type="text/javascript" src="js/utils.js"></script>
    <script type="text/javascript" src="js/TouchSlide.js"></script>
    <script type="text/javascript" src="js/jquery-1.js"></script>
    <script type="text/javascript" src="js/jquery-1.6.2.min.js"></script>
    <script type="text/javascript" src="js/jquery.json-1.3.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
    <script type="text/javascript" src="js/ectouch.js"></script>
</head>

<body style="cursor: auto;" ryt14337="1">


<script>
    onload = function () {
        var sp = document.getElementsByName('shipping');

        for (i = 0; i < sp.length; i++) {
            if (sp[i].checked) {
                oRadioValue = sp[i];
            }
        }
        selectShipping(oRadioValue);

        var py = document.getElementsByName('payment');
        for (i = 0; i < py.length; i++) {
            if (py[i].checked) {
                oRadioValue = py[i];
            }
        }
        selectPayment(oRadioValue);

        var pack = document.getElementsByName('pack');
        for (i = 0; i < pack.length; i++) {
            if (pack[i].checked) {
                oRadioValue = pack[i];
            }
        }
        selectPack(oRadioValue);
        var bonus = document.getElementsByName('bonus');
        for (i = 0; i < bonus.length; i++) {
            if (bonus[i].checked) {
                oRadioValue = bonus[i];
            }
        }
        //changeBonus(oRadioValue);


        var card = document.getElementsByName('card');
        for (i = 0; i < card.length; i++) {
            if (card[i].checked) {
                oRadioValue = card[i];
            }
        }
        selectCard(oRadioValue);
        changeNeedInv();
        var obj        = document.getElementById('ECS_NEEDINV');
        var needInv    = obj.checked ? 1 : 0;
        if(needInv == 1){
            $("#fapiao").show();
        }
        //kaipiao();
    }
</script>
<div id="page">
    <header id="header">
        <div class="header_l"><a class="ico_10" href="flow.php?step=cart"> 返回 </a></div>
        <h1> 确认订单 </h1>
    </header>
</div>
<div class="cart-step" id="J_cartTab">
    <ul>
        <li>1.购物车列表</li>
        <li class="cur">2.确认订单</li>
        <li>3.购买成功</li>
    </ul>
</div>
<div class="blank3"></div>
<section class="wrap">
    <form action="flow.php" method="post" name="theForm" id="theForm" onsubmit="return checkOrderForm(this)">
        <script type="text/javascript">
            var flow_no_payment = "您必须选定一个支付方式。";
            var flow_no_shipping = "您必须选定一个配送方式。";
        </script>
        <section class="order_box padd1 radius10" style="padding-top:0">
            <div class="in">
                <div class="table_box table_box1">
                    <dl>
                        <dd class="w50">收货人姓名 <span class="f1">{$consignee.consignee}</span></dd>
                        <dd class="w50 c999">
                            <div class="ico_14"></div>
                            {$consignee.tel} <a href="flow.php?step=consignee"
                                                class="modify radius5">修改</a></dd>
                    </dl>
                    <dl>
                        <dd class="w50 b_no">详细地址 {$consignee.address}</dd>
                    </dl>
                </div>
            </div>
        </section>
        <div class="blank3"></div>

        <script type="text/javascript">
//           function select_cms(obj)
//           {
//
//              //$(obj).attr('checked',true);
//              //$(obj).parent.siblings().attr("checked",false);
//               //alert(1);
//               //var isChecked = $this.attr('checked');
//               //alert(isChecked);
//               //$this.siblings().attr("checked",false);
//               //$this.attr("checked",checked);
//           }
        </script>
<!--onclick="selectShipping(this)"-->
        <section class="order_box padd1 radius10" style="padding-top:0.3rem;padding-bottom:0.3rem;">
            <div class="table_box table_box2">
                <dl>
                    <dd class="dd1">配送方式 <span class="span1 radius5">必填</span></dd>
                    <dd class="dd2" id="selected1"></dd>
                    <i></i>
                </dl>
                <div class="dl_box" id="shipping" style="display:none">
                    {foreach from=$shipping_list key=n item=val }
                        <p>
                            <input name="shipping" class="radio" id="shipping_{$n}" value="{$val.shipping_id}" checked="" supportcod="1"  insure="0" onclick="selectShipping(this)" style="vertical-align:middle"  type="radio" title="{$val.shipping_name}">
                            <label for="shipping_{$n}" >{$val.shipping_name} [{$val.format_shipping_fee}]</label>
                        </p>
                    <!--<dd class="dd2" id="selected1">{$val.shipping_name}</dd>-->
                    <!--自提点 start-->
                        {if $val.pick_info}
                        <script type="text/javascript">
                            function change_pick(a)
                            {
                                Ajax.call('flow.php?step=pick_info&pick_name='+ a,'', pick_result, 'POST', 'text');
                            }

                        </script>

                        自提点：
                        <select name="pick_info" size="1">
                            {foreach from=$val.pick_info item=val_1}
                            <option value="{$val_1.pick_name}" onclick="change_pick('{$val_1.pick_name}')">{$val_1.pick_name}</option>
                            {/foreach}
                        </select>
                        {/if}
                    <!--自提点  end -->
                    {/foreach}

                </div>
                <dl>
                    <dd class="dd1">支付方式 <span class="span1 radius5">必填</span></dd>
                    <dd class="dd2 selectPayment" id="selected2"></dd>
                    <i></i>
                </dl>
                <div class="dl_box" id="payment" style="display:none">
                    {foreach from=$payment_list key=n item=val}
                    <p>
                        <input class="radio" name="payment" id="payment_{$n}" value="{$val.pay_id}" checked="checked" iscod="0"  onclick="selectPayment(this)" style="vertical-align:middle" type="radio" title="{$val.pay_name}">
                        <label for="payment_{$n}">{$val.pay_name}</label>
                    </p>

                    {/foreach}
                </div>
                <!-- {if $inv_content_list} 能否开发票 -->
                <dl class="b_no" style="line-height: 40px;" >
                    <dd class="dd1">是否开票</dd>
		            <span class="modRadio fr" style="margin-top: 10px;" onclick="kaipiao()">
                        <i class="fl"></i>
                        <ins>否</ins>
                     </span>
                </dl>

                <!--发票 start-->
                <script type="text/javascript">
                    function kaipiao()
                    {
                        var obj        = document.getElementById('ECS_NEEDINV');
                        var needInv    = obj.checked ? 1 : 0;
                        if( needInv == 0){
                            $(".modRadio i").removeClass("fr");
                            $(".modRadio i").addClass("fl");
                            $(".modRadio ins").html('否');
                            $('#inviype_box').css('display','none');
                        }
                        else{
                            $(".modRadio i").removeClass("fl");
                            $(".modRadio i").addClass("fr");
                            $(".modRadio ins").html('是');
                            $('#inviype_box').css('display','block');
                        }

                        if($('#fapiao').is(":visible")==false){
                            $('#fapiao').show();
                            $('#ECS_NEEDINV').attr('checked',true);
                            changeNeedInv()
                        }else{
                            $('#fapiao').hide();
                            $('#ECS_NEEDINV').attr('checked',false);
                            changeNeedInv()
                        }

                    }
                </script>
                <div class="dl_box" id="fapiao" style="display:none">
                    <p>
                         <input name="need_inv" type="checkbox" style="display:none" class="input" id="ECS_NEEDINV" onclick="changeNeedInv()" value="1" checked="false" {if $order.need_inv}checked="true"{/if} />
                        <!-- {if $inv_type_list} -->
                        {$lang.invoice_type}&nbsp;
                        <select name="inv_type" id="ECS_INVTYPE" {if $order.need_inv neq 1}disabled="true"{/if} onchange="changeNeedInv()" style="border:1px solid #ccc;">
                        {html_options options=$inv_type_list selected=$order.inv_type}</select>
                        <br>
                        <!-- {/if} -->
                        {$lang.invoice_title}&nbsp;
                        <input name="inv_payee" type="text" style="width:50em;border:1px solid #EBECED" class="input" id="ECS_INVPAYEE"  {if !$order.need_inv}disabled="true"{/if} value="{$order.inv_payee}" onblur="changeNeedInv()" /><br>
                        发票内容&nbsp;
                        <select name="inv_content" id="ECS_INVCONTENT" {if $order.need_inv neq 1}disabled="true"{/if}  onchange="changeNeedInv()" style="border:1px solid #ccc;">
                        {html_options values=$inv_content_list output=$inv_content_list selected=$order.inv_content}
                        </select>
                    </p>

                </div>
                <!--{/if}-->
               <!--发票  end-->
                <div class="dl_box" id="inviype_box" style="margin-bottom: 0.5rem; display: none;">

                </div>
            </div>
        </section>
        <div class="blank3"></div>
        {if $allow_use_bonus eq 1}
        <section class="order_box padd1 radius10" id="ECS_BONUS"  style="padding-top:0.3rem;padding-bottom:0.3rem;">
            <div class="table_box table_box2" style=" margin-bottom:0.5rem">
                <dl>
                    <dd class="dd1"> 使用红包</dd>
                    <dd class="dd2" id="selected4"></dd>
                    <i></i>
                </dl>
                <div class="dl_box" id="bonus_box" style="display: none;">
                    {foreach from=$bonus_list item=val}
                    <p>
                        <input title='{$val.bonus_money_formated}' class="radio" name="bonus" id="bonus_{$val.bonus_id}" value="{$val.bonus_id}"  {if $order.bonus_id eq $val.bonus_id}checked{/if}  style="vertical-align:middle" type="radio"  name="bonus" onclick="changeBonus('{$val.bonus_id}',this)" id="ECS_BONUS" >
                        <label for="bonus_{$val.bonus_id}">{$val.type_name} [{$val.bonus_money_formated}]</label>
                    </p>

                    {/foreach}
                </div>


                <div class="dl_box">
                    <dl>
                        <dd class="c333">
                            留言备注
                        </dd>
                        <dd>
                            <input placeholder="请输入订单备注" name="postscript" size="20" type="text">
                        </dd>
                    </dl>
                    <dl>
                        <dd class="c333">

                        </dd>

                    </dl>
                </div>
            </div>
        </section>
        {/if}
        <div class="blank3"></div>
        <section class="order_box padd1 radius10" style="padding-top:0;padding-bottom:0;">
            <div class="table_box table_box3">
                <dl>
                    <dd>商品列表<a href="flow.php" class="modify radius5">修改</a></dd>
                </dl>
                {foreach from=$goods_list item=val}
                    <dl>
                        <dd class="dd1 w60">

                            <a href="goods.php?id={$val.goods_id}" target="_blank">{$val.goods_name}</a>
                        </dd>
                        <dd class="dd2 w10 c999"> x {$val.goods_number}</dd>
                        <dd class="dd3 w30"> {$val.goods_price}</dd>
                    </dl>
                {/foreach}


                <div id="ECS_ORDERTOTAL">
                    <script type="text/javascript" src="js/transport.js"></script>
                    <script type="text/javascript" src="js/utils.js"></script>
                    <div id="ECS_ORDERTOTAL">
                        <!--<dl>-->
                            <!--<dd class="dd3 c999">-->
                                <!--该订单完成后，您将获得-->
                                <!--<font class="f4_b">2500</font> 积分 ，以及价值 <font class="f4_b">￥0.00元</font>的红包。-->
                                <!--<br>-->

                                <!--商品总价: <font class="f4_b">￥2500.00元</font>-->
<!--......-->
                                <!--<br>-->

                                <!--应付款金额: <font class="f4_b">￥2500.00元</font>-->
                            <!--</dd>-->
                        <!--</dl>-->


                    </div>
                </div>
            </div>
        </section>
        <div class="blank3"></div>
        <input name="submit" value="提交订单" class="c-btn3" type="submit">
        <input name="step" value="done" type="hidden">
    </form>
</section>


<div class="blank3"></div>
<div style="width:1px; height:1px; overflow:hidden"><a href="http://www.ecshop.com/" target="_blank"
                                                       style=" font-family:Verdana; font-size:11px;">Powered&nbsp;by&nbsp;<strong><span
        style="color: #3366FF">ECShop</span>&nbsp;<span style="color: #FF9966">v2.7.3</span></strong></a>&nbsp;</div>

<script type="text/javascript">
    var process_request = "正在处理您的请求...";
    var username_empty = "用户名不能为空。";
    var username_shorter = "用户名长度不能少于 3 个字符。";
    var username_invalid = "用户名只能是由字母数字以及下划线组成。";
    var password_empty = "登录密码不能为空。";
    var password_shorter = "登录密码不能少于 6 个字符。";
    var confirm_password_invalid = "两次输入密码不一致";
    var email_empty = "Email 为空";
    var email_invalid = "Email 不是合法的地址";
    var agreement = "您没有接受协议";
    var msn_invalid = "msn地址不是一个有效的邮件地址";
    var qq_invalid = "QQ号码不是一个有效的号码";
    var home_phone_invalid = "家庭电话不是一个有效号码";
    var office_phone_invalid = "办公电话不是一个有效号码";
    var mobile_phone_invalid = "手机号码不是一个有效号码";
    var msg_un_blank = "* 用户名不能为空";
    var msg_un_length = "* 用户名最长不得超过7个汉字";
    var msg_un_format = "* 用户名含有非法字符";
    var msg_un_registered = "* 用户名已经存在,请重新输入";
    var msg_can_rg = "* 可以注册";
    var msg_email_blank = "* 邮件地址不能为空";
    var msg_email_registered = "* 邮箱已存在,请重新输入";
    var msg_email_format = "* 邮件地址不合法";
    var msg_blank = "不能为空";
    var no_select_question = "您没有完成密码提示问题的操作";
    var passwd_balnk = "密码中不能包含空格";
    var username_exist = "用户名 %s 已经存在";
    var compare_no_goods = "您没有选定任何需要比较的商品或者比较的商品数少于 2 个。";
    var btn_buy = "购买";
    var is_cancel = "取消";
    var select_spe = "请选择商品属性";
</script>

</body>
</html>